package com.xinyue.game.server.common;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import lombok.Data;

@Data
@Configuration
@ConfigurationProperties(prefix = "xinyue.gameserver.config")
public class GameServerConfig {

    /**
     * 游戏异步任务执行的线程数
     */
    private int gameAsyncTaskThreadCount = Runtime.getRuntime().availableProcessors() * 2;


    /**
     * 网关消息注题前缀,如果修改，要同步修改网关服务和业务服务的配置
     */
    private String gatewayTopicPrefix = "GateGatewayMessageTopic";
    /**
     * 业务服务监听的topic前缀，要同步修改网关服务和业务服务的配置
     */
    private String logicServerTopicPrefix = "LogicServerMessageTopic";
    /**
     * 要处理的客户端消息类定义路径
     */
    private String messagePackagePath = "com.xinyue.game.server.logic.message";

}
